package com.msxt.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.msxt.dto.ChatMessage;
import java.util.List;

public interface ChatMessageService extends IService<ChatMessage> {
    List<ChatMessage> getMessagesByConsultBianhao(String consultBianhao); // 改为使用咨询编号
    Long saveMessage(ChatMessage message);
    void markMessageAsRead(Long messageId, String readerId);
    Long getUnreadCount(String consultBianhao, String userId); // 改为使用咨询编号
}